<?php
final class DAO_TopicClass
{
    const News_ID=1;
    const Ship_ID=2;
    const Ancillary_ID=3;
    const Shipping_ID=4;

    /**
     * 获取类别名称
     */
    public static function GetNameByID($id)
    {
        if($data=DB::GetRowByID('topic_class','Identifying:'.$id))
            return $data['Name'];
        else
            return NULL;
    }
}
?>